package io.gitee.kenewstar.dbmq.mongo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author kenewstar
 */
@Document(collection = MongoKey.MQ_PRIMARY_KEY)
public class MongoPrimaryKey {

    @Id
    private String id;
    private Long value;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getValue() {
        return value;
    }

    public void setValue(Long value) {
        this.value = value;
    }
}
